package com.lynn.accesstoken.repo;

import com.lynn.accesstoken.bean.AppEntity;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @ClassName AccessTokenRepo
 * @Description TODO
 * @Author ly
 * @Date 2019-05-30 16:45
 * @Version 1.0
 */
public interface AppEntityRepo extends MongoRepository<AppEntity, String> {
    AppEntity findByAppIdAndAppSecret(String appId, String appSecret);

    AppEntity findByAppId(String appId);
}
